<<<<<<< HEAD
/*
package com.lld.crowdfunding.config;

import com.lld.crowdfunding.service.impl.UserDetailServiceImpl;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
import org.springframework.security.config.annotation.authentication.builders.AuthenticationManagerBuilder;
import org.springframework.security.config.annotation.web.builders.HttpSecurity;
import org.springframework.security.config.annotation.web.configuration.WebSecurityConfigurerAdapter;
import org.springframework.security.crypto.bcrypt.BCryptPasswordEncoder;
import org.springframework.security.crypto.password.PasswordEncoder;
=======
package com.lld.crowdfunding.config;

import org.springframework.context.annotation.Configuration;
import org.springframework.security.config.annotation.web.builders.HttpSecurity;
import org.springframework.security.config.annotation.web.configuration.WebSecurityConfigurerAdapter;
>>>>>>> 42dbb3a (20210806)

@Configuration
public class SecurityConfig extends WebSecurityConfigurerAdapter {

<<<<<<< HEAD
    */
/*密码编码*//*

    @Bean
    public PasswordEncoder getPassEncoder() {
        return new BCryptPasswordEncoder();
    }


    */
/*security配置*//*

    @Override
    protected void configure(AuthenticationManagerBuilder auth) throws Exception {
        auth.userDetailsService(new UserDetailServiceImpl()).passwordEncoder(getPassEncoder());
    }


    @Override
    protected void configure(HttpSecurity http) throws Exception {
        http.formLogin()
                .loginPage("/login.html")
                .defaultSuccessUrl("/")
                .failureUrl("/login.html")
                .and().csrf().disable();

    }
}
*/
=======
    @Override
    protected void configure(HttpSecurity http) throws Exception {
        http.authorizeRequests()
                .anyRequest().permitAll().and().csrf().disable();
    }
}
>>>>>>> 42dbb3a (20210806)
